# -*- coding:UTF-8 -*-
"""
    HTTP模块相关初始化
"""

"""
    统一拦截器
"""
from web.interceptors.AuthInterceptor import *

"""
    蓝图功能，对所有的url进行蓝图功能配置
"""

from application import app
from web.controllers.static import route_static
from web.controllers.index import route_index
from web.controllers.user.UserController import route_user
from web.controllers.account.AccountController import route_account
from web.controllers.finance.FinanceController import route_finance
from web.controllers.food.FoodController import route_food
from web.controllers.member.MemberController import route_member
from web.controllers.stat.StatController import route_stat

app.register_blueprint(route_index, url_prefix="/")
app.register_blueprint(route_static, url_prefix="/static")
app.register_blueprint(route_account, url_prefix="/account")
app.register_blueprint(route_user, url_prefix="/user")
app.register_blueprint(route_finance, url_prefix="/finance")
app.register_blueprint(route_food, url_prefix="/food")
app.register_blueprint(route_member, url_prefix="/member")
app.register_blueprint(route_stat, url_prefix="/stat")
